﻿using Lonewolf.Entity;
using Lonewolf.Infrastructure;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Lonewolf.IService
{
    public partial interface IAdminInfoService
    {
        Task<JsonResult<SaveEntity>> SaveAsync(AdminInfo admin,string password,string roleIds);
        /// <summary>
        /// 是否存在此帐号
        /// </summary>
        /// <param name="loginName"></param>
        /// <returns></returns>
        AdminInfo GetByAccount(string loginName);
        Task<JsonResult<CookieModel>> LoginAsync(string loginName,string password,string Ip);

    }
}
